﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Crosland.Framework.Base
{
    public class ConstansBase
    {

        #region Constantes DAOHelperBase

        public const string Aplicacion = "RutaSqlAplicacion";
        public const string Sami = "RutaSqlSami";
        public const string ExtensionSqlXml = "Sql.xml";
        public const string CnnAplicacion = "cnnAplicacion";

        public const string Insertar = "USP_SAVE_";
        public const string Actualizar = "USP_UPDATE_";
        public const string Eliminar = "USP_DELETE_";
        public const string Listar = "USP_LIST_";
        public const string ObtenerPorId = "USP_GETBYID_";
        public const string ObtenerPorCriterio = "USP_GETBYCRITERIA_";


        public const string KeyInsertar = "Save";
        public const string KeyActualizar = "Update";
        public const string KeyEliminar = "Delete";
        public const string KeyListar = "List";
        public const string KeyObtenerPorId = "GetById";
        public const string KeyObtenerPorCriterio = "GetByCriteria";
        public const string KeyTotalRecords = "TotalRecords";

        public const string MainNodeSql = "Sqls";
        public const string SubNodeSql = "Sql";
        public const string KeyNode = "key";
        public const string QueryNode = "query";


        public const string SimboloSi = "S";
        public const string SimboloNo = "N";

        public const string MonedaSoles = "S";
        public const string MonedaDolares = "D";

        public const string SimboloSoles = "S/.";
        public const string SimboloDolares = "$.";

        public const string ValidacionEmail = "\\w+([-+.']\\w+)*@\\w+([-.]\\w+)*\\.\\w+([-.]\\w+)*";


        #endregion
    }

    /// <summary>
    /// Estado de un registro
    /// </summary>
    public struct Estados
    {
        public const string Activo = "A";
        public const string Inactivo = "I";
        public const string Eliminado = "E";
    }

    /// <summary>
    /// Tipos de validaciones
    /// </summary>
    public enum TipoValidacion
    { 
        Email = 1,
        Numero = 2,
        Alfanumerico = 3,
        SoloLetras = 4,
        Monto = 5,
        Ingreso = 6,
        Seleccion = 7,
        Ninguno = 8
    }

    /// <summary>
    /// Modo de operacion de una ventana
    /// </summary>
    public struct ModoVentana
    {
        public const string Popup = "Popup";
        public const string Normal = "Normal";

    }
}
